<!doctype html>
<html>
<head>
<?php $this->load->view('common_head'); ?>
<link href="<?php echo base_url(); ?>themes/manage/default/css/style.css?v=<?php echo UI_VERSION; ?>" rel="stylesheet" />
</head>
<body>
<div class="wrap">
	<?php $this->load->view('common_header'); ?>
	<div class="main_wrap">
		<div class="main cc">
			<div class="bread_crumb"> <a class="home" href="<?php echo base_url(); ?>" title="返回首页">首页</a><em>&gt;</em><a href="<?php echo site_url('manage/user/index'); ?>" title="我的控制面板">控制面板</a> </div>
			<!--<h1 class="manage_bread">控制面板</h1>-->
			<div class="cc manage_page">
				<div class="msidebar">
					<div class="menubar">
						<?php $this->load->view('manage/common_left'); ?>
					</div>
				</div>
				<div class="mbody">
					<div class="mcontent">
						<div class="box_wrap">
							<div class="content">
								<div class="content_nav">
									<?php $this->load->view('manage/user_righttop'); ?>
								</div>
								<div class="manage_ct">
									<h3 class="mb5">用户资料</h3>
									<table class="mb10">
										<colgroup>
											<col width="90" />
											<col width="140" />
											<col width="90" />
											<col width="140" />
											<col width="90" />
											<col />
										</colgroup>
										<tbody>
											<?php $posttypename = array('fixed' => '剩余','mon' => '每月','week' => '每周','day' => '每日'); ?>
											<tr>
												<th>发布权限：</th>
												<td colspan="5"><?php echo $posttypename[$postright['second_posttype']]; ?>发布量<?php echo $postright['second_postnum']; ?>条</td>
											</tr>
											<tr>
												<th>本日发布：</th>
												<td><?php echo $user['todaysalenum'] + $user['todayhirenum']; ?></td>
												<th>本周发布：</th>
												<td><?php echo $user['weeksalenum'] + $user['weekhirenum']; ?></td>
												<th>本月发布：</th>
												<td><?php echo $user['monthsalenum'] + $user['monthhirenum']; ?></td>
											</tr>
											<!--
											<tr>
												<th>本日出售：</th>
												<td><?php echo $user['todaysalenum']; ?></td>
												<th>本周出售：</th>
												<td><?php echo $user['weeksalenum']; ?></td>
												<th>本月出售：</th>
												<td><?php echo $user['monthsalenum']; ?></td>
											</tr>
											<tr>
												<th>本日出租：</th>
												<td><?php echo $user['todayhirenum']; ?></td>
												<th>本周出租：</th>
												<td><?php echo $user['weekhirenum']; ?></td>
												<th>本月出租：</th>
												<td><?php echo $user['monthhirenum']; ?></td>
											</tr>
											-->
											<tr>
												<th>发布总数：</th>
												<td><?php echo $user['salenum'] + $user['hirenum']; ?></td>
												<th>出售总数：</th>
												<td><?php echo $user['salenum']; ?></td>
												<th>出租总数：</th>
												<td><?php echo $user['hirenum']; ?></td>
											</tr>
											<tr>
												<th>账户余额：</th>
												<td colspan="5"><span class="mr5"><?php echo $user['rmbnum']; ?> RMB</span><a class="" href="<?php echo site_url('manage/myuser/index'); ?>">我要充值</a></td>
											</tr>
											<!-- 中介用户才显示 -->
											<tr>
												<th>我的认证：</th>
												<td colspan="5"><span class="mr5">手机</span><span class="mr5">身份证</span><span class="mr5">头像</span><span class="mr5">名片</span><a class="" href="<?php echo site_url('manage/myuser/index'); ?>">我要认证</a></td>
											</tr>
											<tr>
												<th>上次登录：</th>
												<td><?php echo date('Y-m-d H:i:s', $userlog['pre_login_time']); ?></td>
												<th>登录 IP：</th>
												<td><a href="http://ip.taobao.com/ipSearch.php?ipAddr=<?php echo long2ip($userlog['pre_login_ip']); ?>" title="查询IP详细信息" target="_blank"><?php echo long2ip($userlog['pre_login_ip']); ?></a></td>
												<th>登录日志：</th>
												<td><a href="<?php echo site_url('manage/user/loginlog'); ?>" title="查询详细登录信息">查看登录日志</a></td>
											</tr>
											<tr>
												<th>注册时间：</th>
												<td><?php echo date('Y-m-d H:i:s', $user['created']); ?></td>
												<th>注册 IP：</th>
												<td colspan="3"><a href="http://ip.taobao.com/ipSearch.php?ipAddr=<?php echo long2ip($user['created_ip']); ?>" title="查询IP详细信息" target="_blank"><?php echo long2ip($user['created_ip']); ?></a></td>
											</tr>
										</tbody>
									</table>
									<h3 class="mb5">说明：</h3>
									<ol class="s6" style="padding-left:30px;">
										<li>发布数量不分出售或出租，既是不论发布出售或是出租发布数量都会减少1</li>
										<li>加入中介公司后，发布权限会被中介公司所覆盖，当中介公司权限已经过期或是总发布数量为0时，个人权限恢复</li>
									</ol>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!--.main-wrap,#main End-->
	<?php $this->load->view('common_footer'); ?>
</div>
<script>
Wind.use('jquery', 'global');
</script>
</body>
</html>